import com.briup.client.Client;
import com.briup.client.Gather;
import com.briup.entity.User;
import org.junit.jupiter.api.Test;
import com.briup.entity.Environment;
import java.io.IOException;
import java.util.List;
import static com.briup.util.jdbcUtil.getSelect;

/**
 * @Auther: xiongwenbin
 * @Date: 2024/7/14-07-14-下午8:18
 * @Description: PACKAGE_NAME
 */
public class testClient {
    @Test
    public void clientTest() throws IOException {
        Client client = new Client();
        Gather ga=new Gather();
        client.send(ga.gather());
    }
    @Test
    public void test() throws Exception {

        String sql = "select * from t_user where id =1";
        List<User> list = getSelect( sql, User.class);
        for (User user : list) {
            System.out.println(user);
        }
        String sql2 = "select * from environment_copy19 where gather_date='2018-01-19 09:03:41'";
        List<Environment> list2 = getSelect(sql2, Environment.class);
        for (Environment environment : list2) {
            System.out.println(environment);
        }
    }
}
